package com.smartleanx.module.hrm.convert.employee.contract;

import com.smartleanx.module.hrm.controller.admin.employee.contract.EmployeeContractRespVO;
import com.smartleanx.module.hrm.dal.dataobject.employee.EmployeeContractDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 员工合同
 *
 * @author tengcj
 * @since 2024/5/27
 */
@Mapper
public interface EmployeeContractConvert {

    EmployeeContractConvert INSTANCE = Mappers.getMapper(EmployeeContractConvert.class);

    EmployeeContractRespVO convert(EmployeeContractDO contractDO);

    List<EmployeeContractRespVO> convertList(List<EmployeeContractDO> contractDOList);

}
